package src.C_io;

import java.io.FileInputStream;
import java.io.IOException;

// 字节输入流（循坏读取）
public class Demo03 {
    public static void main(String[] args) throws IOException {
        // 1、创建对象
        FileInputStream fileInputStream = new FileInputStream("src\\C_io\\a.txt");

        // 2、循坏读取
        int b;
        while ((b = fileInputStream.read()) != -1){
            System.out.print((char)b);
        }

        // 3、关闭连接
        fileInputStream.close();
    }
}
